package com.itluma.isWOak.service.impl;

import com.github.pagehelper.PageHelper;
import com.github.pagehelper.PageInfo;
import com.itluma.isWOak.mapper.ClientTimeMapper;
import com.itluma.isWOak.pojo.Account;

import com.itluma.isWOak.pojo.NewAccount;
import com.itluma.isWOak.service.ClientTimeService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
  @Service
public class ClientTimeServiceImpl implements ClientTimeService{
    @Autowired
    private ClientTimeMapper  clientTimeMapper;
   // @Override

      public PageInfo<NewAccount> page1(Integer page, Integer limit) {
          PageHelper.startPage(page, limit);

          List<NewAccount> roles = clientTimeMapper.list1();

          PageInfo<NewAccount> pageInfo = new PageInfo<NewAccount>(roles);
          return pageInfo;
      }

      //@Override
    public PageInfo<NewAccount> page2(Integer page, Integer limit) {

        PageHelper.startPage(page, limit);

        List<NewAccount> roles = clientTimeMapper.list2();

        PageInfo<NewAccount> pageInfo = new PageInfo<NewAccount>(roles);
        return pageInfo;
    }
     // @Override
      public PageInfo<NewAccount> page3(Integer page, Integer limit) {
          PageHelper.startPage(page, limit);

          List<NewAccount> roles = clientTimeMapper.list3();

          PageInfo<NewAccount> pageInfo = new PageInfo<NewAccount>(roles);
          return pageInfo;
      }
  }
